package com.szrt.zengyao.day20161019;

public class TeacherServiceImpl {
	
	public TeacherEntity findEntityById(int id,TeacherEntity[] teacherArr){
		TeacherEntity teacher = null;
		for(TeacherEntity t:teacherArr){
			if(t.getId()==id){
				teacher = t;
				break;
			}
		}
		return teacher;
	}
	

}
